import BaseFindApi from '@/api/baseFindApi';
import {PARAMS} from '@/api/http';
import WxUserLoginLog from '../structure/wxUserLoginLog';

/**
 * 微信用户登录记录
 */
class WxUserLoginLogApi extends BaseFindApi<WxUserLoginLog> {
    public getBase(): string {
        return 'wx/user/wxUserLoginLog';
    }

    /**
     * 导出excel
     * @param params 参数
     * @return 响应
     */
    public exportExcel(params: PARAMS): Promise<Blob> {
        return super.get0(`${this.getBase()}/exportExcel`, {
            responseType: 'blob',
            params
        });
    }
}

export default new WxUserLoginLogApi();
